package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class CartsController {
    @RequestMapping("/v1/carts/add")
    @ResponseBody
    public String addCart() {
        return "添加成功";
    }
    @RequestMapping("/v1/carts/list")
    @ResponseBody
    public String lookCart() {
        return "查看成功";
    }
}
